jQuery.fn.extend({
    append_id: function ($id) {
        if(!jQuery(this).val()){
            return jQuery(this).val($id);
        }
        return jQuery(this).val(jQuery(this).val()+','+$id);
    },
    retailstore_validate_msg: function ($msg) {
         jQuery(this).html($msg);      
    },
    retailstore_load: function (id,year,sales,tableName) {
        var html ='<div class="fertilization-div '+id+'"><div class="fertilization-title">' +year+
            '销售量<span class="fertilization-delete" onclick="delete_retailstore(\''+tableName+'\',\''+id+'\')">-</span></div>' +
            '<ul><li>年份:'+year+'</li>' +
            '<li>销量:'+sales+'</li></ul></div>';
        jQuery('.add-fertilization-div').before(html);
    }
});